import request from '@/utils/request'
//评论
export default {
  getComments(params) {
    return request.get('/comments/list', { params })
  },
  approveComment(data) {
    return request.post('/comments/approve', data)
  },
  deleteComment(id) {
    return request.delete(`/comments/delete/${id}`)
  }
}